/*
 *   Copyright (C) 2008 - 2009  FireBalls
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// includes
#include "Powerup.h"

Powerup *powerup;

void Powerup::setActive(bool b, int x, int y, int type) {
    active = b;
    coord.x = x;
    coord.y = y;
    Type = type;
}

void Powerup::setActive(bool b) {
    active = b;
}

bool Powerup::getActive() {
    return active;
}

int Powerup::getX() {
    return coord.x * 25 + 10 + GridX;
}

int Powerup::getY() {
    return coord.y * 25 + 10 + GridY;
}

SDL_Surface* Powerup::getSurface() {
    return Surf;
}

void Powerup::setSurface(SDL_Surface *surf) {
    Surf = surf;
}

int Powerup::getCoordX() {
    return coord.x;
}

int Powerup::getCoordY() {
    return coord.y;
}

